package com.huilian.iotbox.admin.wap.dao;

import com.huilian.iotbox.data.dto.MerchantDto;
import com.huilian.iotbox.data.dto.MerchantPayCompanyDto;
import com.huilian.iotbox.data.po.Merchant;
import com.huilian.iotbox.data.po.MerchantPayCompany;
import com.huilian.iotbox.data.po.PayCompany;
import com.huilian.iotbox.data.vo.MerchantPayCompanyVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 谢洛涛
 * @date 2021/6/4 16:31
 */
@Mapper
public interface MerchantPayCompanyDao {
    Integer addMerchantPayCompany(MerchantPayCompany merchantPayCompany);

    List<PayCompany> findPayCompany(Merchant merchant);

    List<MerchantPayCompanyVo> findMerchantPayCompany(MerchantDto merchant);

    MerchantPayCompany findYeahkaOpenSplitStatus(MerchantDto merchantDto);

    Integer update(MerchantPayCompanyDto merchantPayCompanyDto);

    PayCompany finOnePayCompany(String payCompanyCode);
}
